<?php echo $this->fetch('header.html'); ?>
<ul class="nav nav-tabs">
<li class="active"><a href="<?php echo $this->_var['appadmin']; ?>?m=sites"><?php echo $this->_var['lang']['sites_admin']; ?></a></li> 
<li><a href="<?php echo $this->_var['appadmin']; ?>?m=sites&a=add"><?php echo $this->_var['lang']['sites_add']; ?></a></li>
</ul>

<table width="100%" class="table table-bordered">
  <tr>
    <td width="8%" align="center">siteid</td>
    <td width="22%" align="center"><?php echo $this->_var['lang']['sitename']; ?></td>
    <td width="20%" align="center"><?php echo $this->_var['lang']['domain']; ?></td>
    <td width="20%" align="center"><?php echo $this->_var['lang']['title']; ?></td>
    <td width="10%" align="center">状态</td>
    <td width="20%" align="center"><?php echo $this->_var['lang']['operation']; ?></td>
  </tr>
  <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 's');if (count($_from)):
    foreach ($_from AS $this->_var['s']):
?>
  <tr>
    <td align="center"><?php echo $this->_var['s']['siteid']; ?></td>
    <td align="center"><?php echo $this->_var['s']['sitename']; ?></td>
    <td align="center"><a href="<?php if ($this->_var['s']['domain']): ?>http://<?php echo $this->_var['s']['domain']; ?><?php else: ?>/index.php?siteid=<?php echo $this->_var['s']['siteid']; ?><?php endif; ?>" target="_blank"><?php echo $this->_var['s']['domain']; ?></a></td>
    <td align="center"><?php echo $this->_var['s']['title']; ?></td>
    <td align="center"><?php if ($this->_var['s']['is_open'] == 1): ?>开启<?php else: ?>关闭<?php endif; ?></td>
    <td align="center"><a href="<?php echo $this->_var['appadmin']; ?>?m=sites&a=add&siteid=<?php echo $this->_var['s']['siteid']; ?>"><?php echo $this->_var['lang']['edit']; ?></a> <a href="<?php if ($this->_var['s']['domain']): ?>http://<?php echo $this->_var['s']['domain']; ?><?php else: ?>/index.php?siteid=<?php echo $this->_var['s']['siteid']; ?><?php endif; ?>" target="_blank"><?php echo $this->_var['lang']['look']; ?> </a>  
    
    <a href="javascript:;" class="delete" url="<?php echo $this->_var['appadmin']; ?>?m=sites&a=delete&ajax=1&siteid=<?php echo $this->_var['s']['siteid']; ?>">删除</a>
    <?php if ($this->_var['ssadmin']['isfounder']): ?>
    <a href="<?php echo $this->_var['appadmin']; ?>?m=iframe&a=top&setsite=1&siteid=<?php echo $this->_var['s']['siteid']; ?>" target="header-frame">切换</a><?php endif; ?></td>
  </tr>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  
</table>
<?php echo $this->_var['pagelist']; ?>
<?php echo $this->fetch('footer.html'); ?>